<!DOCTYPE html>
<html>

<head>
    <title>{$category.name} - {$category.seo_title} {$site_info.site_seo_title|default=''}</title>
    <meta name="keywords" content="{$category.seo_keywords},{$site_info.site_seo_keywords|default=''}" />
    <meta name="description" content="{$category.seo_description},{$site_info.site_seo_description|default=''}">
    <link href="__TMPL__/public/assets/css/list.css" rel="stylesheet">
    <include file="public@head" />
    <hook name="before_head_end" />
</head>

<body>
    <div class="m_container">
        <include file="public@head_list" />
        <div class="row">
            <div class="col-xs-12">
                <div class="list_header">
                    <span class="catname">{$category.name}</span>
                    <notempty name="$category.description">
                        <span class="description">{$category.description}</span>
                    </notempty>
                </div>
                <div class="items_all">
                    <php>
                        $where=[ 'post.create_time'=>['egt',0] ]; $page=[ 'list_rows'=>3, 'next'=>'下一页', 'prev'=>'上一页' ];
                    </php>
                    <portal:articles item="vo" where="$where" order="post.create_time DESC" page="$page" relation="categories" categoryIds="$category.id" returnVarName="articles_data">
                        <if condition="$category.id eq 9">
                            <div class="list-members">
                                <a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo.category_id))}">
                                    <present name="vo.more.thumbnail">
                                        <empty name="vo.more.thumbnail">
                                            <img src="__TMPL__/public/assets/images/default-thumbnail.png" alt="">
                                            <else/>
                                            <img src="{:cmf_get_image_url($vo.more.thumbnail)}" alt="">
                                        </empty>
                                        <else/>
                                        <img src="__TMPL__/public/assets/images/default-thumbnail.png" alt="">
                                    </present>
                                </a>
                            </div>
                            <else />
                            <div class="list-boxes">
                                <present name="vo.more.thumbnail">
                                    <notempty name="vo.more.thumbnail">
                                        <div class="list-imgboxes">
                                            <img src="{:cmf_get_image_url($vo.more.thumbnail)}" class="myimg-responsive" alt="">
                                        </div>
                                    </notempty>
                                </present>
                                <div class="list_info">
                                    <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category['id']))}">
                                        <span class="title_sp">{$vo.post_title|my_substr=0,16,'utf-8'}</span>
                                        <span class="excerpt_sp">{$vo.post_excerpt|my_substr=0,34,'utf-8'}</span></a>
                                    <div>
                                        <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category['id']))}"><span class="more_sp">更多内容</span></a>
                                        <span class="update_sp">{$vo.published_time|date='Y-m-d',###}</span>
                                    </div>
                                </div>

                            </div>
                        </if>
                    </portal:articles>
                </div>
                <ul class="pagination">
                    <page/>
                </ul>
            </div>
        </div>
        <include file="public@footer" />
    </div>
</body>

</html>